package com.demo.behavioral.mediator;

public class LettingAgent {
	
	private Customer customer;
	
	private HouseOwner houseOwner;
	
	private String sellerPrice = "250W";
	
	private String buyerPrice;

	public Customer getCustomer() {
		return customer;
	}

	public void setCustomer(Customer customer) {
		this.customer = customer;
	}

	public HouseOwner getHouseOwner() {
		return houseOwner;
	}

	public void setHouseOwner(HouseOwner houseOwner) {
		this.houseOwner = houseOwner;
	} 
	
	public String getSellerPrice() {
		return sellerPrice;
	}

	public void setSellerPrice(String sellerPrice) {
		this.sellerPrice = sellerPrice;
	}

	public String getBuyerPrice() {
		return buyerPrice;
	}

	public void setBuyerPrice(String buyerPrice) {
		this.buyerPrice = buyerPrice;
	}

	public void purchaseHandle(Customer customer,String price){
		System.out.println("接收到"+customer.getUserName()+"的购房申请");
		this.buyerPrice = price;
		System.out.println("买方报价为"+price);
		System.out.println("中介系统分析到该房屋持有者为"+houseOwner.getUserName());
		System.out.println("向其通知购房请求"); 
	}
	
	

}
